let name = '小明'
let age = 18
let flag = true

function sum(num1, num2) {
    return num1 + num2
}

if (flag) {
    console.log(sum(20, 30));
}

//导出方式一
export { 
    name, 
    age, 
    flag, 
    sum
}

//导出方式二
export let Name = '张同学'
export let address = '重庆对外经贸学院欢迎您!'

//3.导出方式三 导出函数/类
export function mul(num1, num2) {
    return num1 * num2
}
export class Person {
    study() {
        console.log('在学习');
    }
}

//4.exporst default 默认导出，同一个模块中有且只能有一个
const music = '陈奕迅'
export default music